<?php
/**
* @version   $Id: mod_scribblemaps.php 4 2010-10-05 09:23:50Z edo888 $
* @package   Scribble Maps
* @copyright Copyright (C) 2010 Edvard Ananyan. All rights reserved.
* @license   GNU/GPL, see LICENSE.php
*/

defined('_JEXEC') or die('Restricted access');

require_once (dirname(__FILE__).DS.'helper.php');

$params = modScribbleMapsHelper::getParams($params);

$id = $params->get('map_id');
$db =& JFactory::getDBO();
$db->setQuery("select * from #__scribblemaps where id = '$id'");
$map = $db->loadObject();

require(JModuleHelper::getLayoutPath('mod_scribblemaps'));